package com.imti.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.user.pojo.UmsMember;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MemberMapper extends BaseMapper<UmsMember> {

   @Update("update ums_member set integration=integration-#{integration} where id=#{memberId}")
   int updateIntegrationById(@Param("memberId") Long memberId, @Param("integration") Integer integration);
}